Xbasic

OBJECT.MENUITEMRESET Function

Syntax

.Menuitemreset(c menuitem )

Arguments

menuitem

The text of a menu entry.

Description

Removes any checkmarks and enables a menu entry.

The <OBJECT>.MENUITEMRESET() method applies to:

Browses (for <OBJECT> use either the <BROWSE> pointer or the name of the browse)
Forms (for <OBJECT> use either the <FORM> pointer or the name of the form)

The <OBJECT>.MENUITEMRESET() method removes any checkmarks and enables a menu entry.

Example

The following example leaves the Highlight keywords entry in the Find menu cleared and enabled.

dim ptr as P
ptr = form.load("Customer Information")
ptr.show()
ptr.menuitemcheck("Highlight keywords", .T.)
ptr.menuitemenable("Highlight keywords", .F.)
ptr.Menuitemreset("Highlight keywords")

Limitations

Desktop applications only.

See Also